package com.hetao.assist.model;

import java.util.List;

/**
 * @author hetao
 * @param <T>
 */
public class JsonPage<T> {
    private int status = 1;
    private String msg;
    private String details;
    private PageData<T> data = new PageData<T>();


    public JsonPage(){
    }

    public JsonPage(List<T> rows, long total, long page, long size, long totalpage){
        this.data.setData(rows);
        this.data.setTotalItem(total);
        this.data.setPage(page);
        this.data.setSize(size);
        this.data.setTotalPage(totalpage);
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }
    public PageData<T> getData() {
        return data;
    }
    public void setData(PageData<T> data) {
        this.data = data;
    }

}
